package com.cqeec.gams.service;

import java.util.List;
import java.util.Map;

import com.cqeec.gams.common.Function;
import com.cqeec.gams.entity.Account;
import com.cqeec.gams.entity.AccountRole;
import com.cqeec.gams.service.core.BaseService;

/**
 * 账户服务。
 * 
 * @author 唐礼飞
 *
 */
public interface AccountService extends BaseService<Account> {
	public Account login(String name, String password);

	public Map<String, Object> updatePassword(String id, String oldPassword, String newPassword,
			String confirmPassword);

	List<Account> findPage(int page, int size);

	public void insertAccountRole(AccountRole ar);

	public List<AccountRole> getAccountRole(String id);

	public void deleteAccountRole(String id);

	public List<Function> getFunction(String id);

}
